from datetime import datetime
from mongoengine import EmbeddedDocument, DateTimeField, StringField

class DocMeta(EmbeddedDocument):
    create_date = DateTimeField(default=lambda :datetime.now())
    update_date = DateTimeField(default=lambda :datetime.now())
    author = StringField(default="zhangjh")